package com.qys.livesMall.app.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户关系
 * </p>
 *
 * @author
 * @since 2023-10-13
 */
@Getter
@Setter
@TableName("h2_app_user_relation")
@Schema(name = "AppUserRelation", description = "用户关系")
public class AppUserRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "父id")
    private Long parentId;

    @Schema(description = "所在层")
    private Integer level;
}
